﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Echart.BLL.Echarts
{
    public class EchartManager
    {
        /// <summary>
        /// 获取当前图表对象。
        /// </summary>
        public static EchartManager Current { get; protected set; } = new EchartManager();

        /// <summary>
        /// 初始化对象
        /// </summary>
        public EchartManager()
        {
            HtmlManager = new HtmlManager();
            OptionManager = new OptionManager();
            SampleManager = new SampleManager();
            TitleManager = new TitleManager();
            XaxisManager = new XaxisManager();           
        }

        /// <summary>
        /// HtmlManager类
        /// </summary>
        public virtual HtmlManager HtmlManager
        {
            get;
            private set;
        }

        /// <summary>
        /// OptionManager类
        /// </summary>
        public virtual OptionManager OptionManager
        {
            get;
            private set;
        }

        /// <summary>
        /// SampleManager类
        /// </summary>
        public virtual SampleManager SampleManager
        {
            get;
            private set;
        }

        /// <summary>
        /// TitleManager类
        /// </summary>
        public virtual TitleManager TitleManager
        {
            get;
            private set;
        }

        /// <summary>
        /// XaxisManager类
        /// </summary>
        public virtual XaxisManager XaxisManager
        {
            get;
            private set;
        }
    }
}
